package com.winner.data.controller;

import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestClientException;

/**
 * @Author wangxinle5
 * @since 2025-07-15
 */
@Component
public class ProxyClass {

    @Retryable(value = RestClientException.class, maxAttempts = 3, backoff = @Backoff(delay = 5000))
    public void callThird() throws RestClientException {
        throw new RestClientException("11");
    }
}
